//
//  AYMCaseManger.m
//  QuickCure
//
//  Created by guo3920591 on 16/5/9.
//  Copyright © 2016年 ayumi. All rights reserved.
//

#import "AYMCaseManger.h"

@implementation AYMCaseManger

-(void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:_pathString forKey:@"key11"];
    [aCoder encodeObject:_caseName forKey:@"key12"];
    [aCoder encodeObject:_baseName forKey:@"key13"];
    [aCoder encodeObject:_descriptionName forKey:@"key14"];
    
}

-(instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]) {
        _pathString = [aDecoder decodeObjectForKey:@"key11"];
        _caseName = [aDecoder decodeObjectForKey:@"key12"];
        _baseName = [aDecoder decodeObjectForKey:@"key13"];
        _descriptionName = [aDecoder decodeObjectForKey:@"key14"];
    }
    
    return self;
}
-(instancetype)initWithDict:(NSDictionary *)dict{
    
    if (self = [super init]) {
        
        [self setValuesForKeysWithDictionary:dict];
    }
    
    return self;
    
}

+(instancetype)casePlistWithDict:(NSDictionary *)dict{
    return [[self alloc] initWithDict:dict];
}
@end
